﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.master" AutoEventWireup="true"
    CodeFile="List.aspx.cs" Inherits="List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="H" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="C" runat="Server">
    <div class="part5">
        <div class="left">
            <div class="fenlei">
                <h3>
                    <%# Entity.Childs.Count == 0 ? Entity.ParentClassisName : Entity.Name%></h3>
                <ul style="display:">
                    <asp:Repeater ID="rptleftmenusub" runat="server">
                        <ItemTemplate>
                            <li><a href='list.aspx?id=<%# Eval("ID") %>'>
                                <%# DataBinder.Eval(Container.DataItem,"Name") %></a> </li>
                        </ItemTemplate>
                    </asp:Repeater>
                    <asp:ObjectDataSource ID="odssubmenu" runat="server" DataObjectTypeName="NewsPub.Classis"
                        OldValuesParameterFormatString="original_{0}" SelectMethod="FindAllByParentID"
                        TypeName="NewsPub.Classis">
                        <SelectParameters>
                            <asp:Parameter Name="id" Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </ul>
            </div>
        </div>
        <!--left end-->
        <div class="right">
            <div id="lmlist">
                <%--        <h2><em>当前位置：<a href="./../">首页</a>&nbsp;&gt;&nbsp;<a href="./">政务公开</a> </em>
</h2>--%>
                <h2>
                    <em>当前位置：<a href="./../../">首页</a>&nbsp;&gt;&nbsp;<%# Entity.ParentID == 0 ? "<a href='list.aspx?id=" + Entity.ID + "'>" + Entity.Name + "</a>" : "<a href='list.aspx?id=" + Entity.ParentID + "'>" + Entity.ParentClassisName + "</a>" + "&nbsp;&gt;&nbsp; <a href='list.aspx?id=" + Entity.ID + "'>" + Entity.Name + "</a>"%><%--<%=getlocation() %>--%><%--<a href="./../../">首页</a>&nbsp;&gt;&nbsp;<a href="./../">政务公开</a>&nbsp;&gt;&nbsp;<a href="./">领导分工</a>--%>
                    </em>
                </h2>
                <ul>
                <asp:Repeater ID="rptlist" runat="server">
                        <ItemTemplate>
                            <li><a href='disp.aspx?id=<%# DataBinder.Eval(Container.DataItem,"ID") %>'>
                                <script type="text/javascript">
                                    document.write(getTitle('<%# Eval("Title") %>', 80));
                                </script></a> <i>
                                    <%# String.Format("{0:d}", DateTime.Parse(DataBinder.Eval(Container.DataItem, "CreateTime").ToString()))%></i>
                            </li>
                        </ItemTemplate>
                    </asp:Repeater>
                    <asp:ObjectDataSource ID="ods" runat="server" DataObjectTypeName="NewsPub.Classis"
                        OldValuesParameterFormatString="original_{0}" SelectMethod="FindByID"
                        TypeName="NewsPub.Classis">
                        <SelectParameters>
                            <asp:Parameter Name="id" Type="Int32" />
                            <%--string whereClause, string orderClause, string selects, int startRowIndex, int maximumRows
            <asp:Parameter Name="sql" Type="String" DefaultValue="select * from details where ClassisID=14 Limit 0,6" />--%>
                            <%--<asp:Parameter Name="whereClause" Type="String" DefaultValue="ClassisID=14" />
                        <asp:Parameter Name="orderClause" Type="String" DefaultValue="CreateTime " />
                        <asp:Parameter Name="selects" Type="String" DefaultValue="*" />--%>
                            <%--<asp:Parameter Name="value" Type="Object" DefaultValue="14"/>--%>
                            <%--<asp:Parameter Name="startRowIndex" Type="Int32" />
                        <asp:Parameter Name="maximumRows" Type="Int32" DefaultValue="6" />--%>
                        </SelectParameters>
                    </asp:ObjectDataSource>
                    <%--<XCL:DataPager ID="pager" runat="server" PageSize="5" OnPageIndexChanging="DataPager2_PageIndexChanging" >
                    </XCL:DataPager>--%>
                    <XCL:DataPager ID="pager" runat="server" OnPageIndexChanging="DataPager2_PageIndexChanging"
         PageIndex2="1" >
        <PagerSettings Mode="NumericFirstLast" />
        <PagerTemplate>
            共<asp:Label ID="Label6" runat="server" Text='<%# Eval("TotalRowCount") %>'></asp:Label>条
            每页<asp:Label ID="Label3" runat="server" Text='<%# Eval("PageSize") %>'></asp:Label>条
            当前第
            <asp:Label ID="LabelCurrentPage" runat="server" Text='<%# Eval("PageIndex2") %>'></asp:Label>
            页/共
            <asp:Label ID="LabelPageCount" runat="server" Text='<%# Eval("PageCount") %>'></asp:Label>
            页
            <asp:LinkButton ID="LinkButtonFirstPage" runat="server" CommandArgument="First" CommandName="Page"
                Visible='<%# !(Boolean)Eval("IsFirstPage") %>'>首页</asp:LinkButton>
            <asp:LinkButton ID="LinkButtonPreviousPage" runat="server" CommandArgument="Prev"
                CommandName="Page" Visible='<%# !(Boolean)Eval("IsFirstPage") %>'>上一页</asp:LinkButton>
            <asp:LinkButton ID="LinkButtonNextPage" runat="server" CommandArgument="Next" CommandName="Page"
                Visible='<%# !(Boolean)Eval("IsLastPage") %>'>下一页</asp:LinkButton>
            <asp:LinkButton ID="LinkButtonLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                Visible='<%# !(Boolean)Eval("IsLastPage") %>'>尾页</asp:LinkButton>
            转到第
            <input type="textbox" id="txtNewPageIndex" style="width: 40px;" value='<%# Eval("PageIndex2") %>' />页
            <input type="button" id="btnGo" value="GO" onclick="javascript:__doPostBack('<%# ((XControl.DataPager)Container.NamingContainer).UniqueID %>','Page$'+document.getElementById('txtNewPageIndex').value)" />
        </PagerTemplate>
    </XCL:DataPager>
                   
                    <div class="c">
                    </div>
                </ul>
                <div class="page">
                    <%--<script language="JavaScript">





    createPageHTML(1, 0, "index", "html", "${RECORD_COUNT}");

</script><a href="#none" onclick="return false;">共 1 页 0 条</a>--%>
                </div>
                <!-- 分页 -->
            </div>
            <!--栏目名称-->
        </div>
        <!--right end-->
    </div>
</asp:Content>
